<?php

$_SERVER['config']['plugins'] =  array(
//		array('sms', 'index', 'view_send_form', array('Plugin', 'vcode_seed'), 'before'),
//		array('sms', 'index', 'reply_form', array('Plugin', 'vcode_seed'), 'before'),
//		array('sms', 'index', 'send', array('Plugin', 'vcode_seed'), 'after'),											// 防止刷短信，随机出验证码
//		array('sms', 'index', 'reply', array('Plugin', 'vcode_seed'), 'after'),				
//		array('duel', 'combat', '.*', array('Plugin', 'vcode_seed'), 'after'),											// 防止刷短信，随机出验证码
		array('sms', 'index', '^view_.*', array('sms_plugin_whatsnew', 'getNewSystem'), 'after'),						// 获得新系统消息数量
		array('sms', 'index', '^view_.*', array('sms_plugin_whatsnew', 'getNewAnnouncement'), 'after'),					// 获得新公告数量
		array('sms', 'index', 'view_inbox', array('sms_plugin_whatsnew', 'setReadMessage'), 'after', 0),				// 重置新短消息
		array('sms', 'system', '^view_.*', array('sms_plugin_whatsnew', 'getNewMessage'), 'after'),						
		array('sms', 'system', '^view_.*', array('sms_plugin_whatsnew', 'getNewAnnouncement'), 'after'),
		array('sms', 'system', 'view_inbox', array('sms_plugin_whatsnew', 'setReadSystem'), 'after', 0),
		array('sms', 'announcement', '^view_.*', array('sms_plugin_whatsnew', 'getNewMessage'), 'after'),
		array('sms', 'announcement', '^view_.*', array('sms_plugin_whatsnew', 'getNewSystem'), 'after'),
		array('sms', 'announcement', 'view_inbox', array('sms_plugin_whatsnew', 'setReadAnnouncement'), 'after', 0),
//		array('favorite', 'index', '^view_.*', array('favorite_plugin_category', 'getList'), 'before'),					// 
//		array('avatar', 'index', 'save', array('notify_plugin_log', 'dolog'), 'after', 0),								// 保存头像后添加动态
//		array('favorite', 'index', 'add_item', array('notify_plugin_log', 'dolog'), 'after', 0),						// 收藏夹添加数据后发送动态
		array('friends', 'index', 'add', array('sms_plugin_system', 'send'), 'after', 0),								// 添加好友后发送动态
		array('friends', 'index', 'bind', array('sms_plugin_system', 'send'), 'after', 0),
		array('friends', 'index', 'refuse', array('sms_plugin_system', 'send'), 'after', 0),
		//array('friends', 'index', 'add', array('notify_plugin_log', 'dolog'), 'after', 0),
		//array('friends', 'index', 'bind', array('notify_plugin_log', 'dolog'), 'after', 0),
//		array('friends', 'invitation', 'invite', array('notify_plugin_log', 'dolog'), 'after', 0),
);
